const { ENUM_CACHE_TYPE } = require("./enum");

const cacheConfig = [
    {
        key: "cache-key-1"
    },
    {
        key: "cache-key-2",
        expireTime: 300,
        type: ENUM_CACHE_TYPE.MEMORY.value
    },
    {
        key: "cache-key-3",
        type: ENUM_CACHE_TYPE.STORAGE.value
    }
]

const requestConfig = {
    baseUrl: 'https://www.baidu.com',
    tokenPassWhiteList: [],

    successStatusCode: 200,
    successCode: 200,
    reloginCode: 401,

    refreshTokenNotificationKey: 'notification-refresh-token',
    refreshTokenNotificationSuccessKey: 'notification-refresh-token-success',

    accessTokenCacheKey: 'cache-access-token',
}

const config = {
    projectName: "lee-common-js",
    defaultShareTitle: "lee-common-js",
    defaultSharePagePath: "pages/index/index",
    requestConfig,
    cacheConfig,
}

module.exports = config;
